package cn.com.duiba.millionaire.center.biz.bo;

/**
 * Created by sty on 1/23/18.
 */
public class ConsumerRenascenceInfoParam implements Comparable{
    /**
     * 分会场活动id
     */
    private Long activityId;
    /**
     * 题目索引
     */
    private Integer questionIndex;
    /**
     * 扣减复活卡用户列表
     */
    private Long cid;
    /**
     * 扣减数量
     */
    private int num ;

    //redis用户复活卡数量
    private int originRedisCardNum;
    //redis用户复活卡变更数量
    private int originRedisChangeNum;

    public Long getActivityId() {
        return activityId;
    }

    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }

    public Integer getQuestionIndex() {
        return questionIndex;
    }

    public void setQuestionIndex(Integer questionIndex) {
        this.questionIndex = questionIndex;
    }

    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getOriginRedisCardNum() {
        return originRedisCardNum;
    }

    public void setOriginRedisCardNum(int originRedisCardNum) {
        this.originRedisCardNum = originRedisCardNum;
    }

    public int getOriginRedisChangeNum() {
        return originRedisChangeNum;
    }

    public void setOriginRedisChangeNum(int originRedisChangeNum) {
        this.originRedisChangeNum = originRedisChangeNum;
    }

    @Override
    public int compareTo(Object o) {
        if (o instanceof ConsumerRenascenceInfoParam){
            ConsumerRenascenceInfoParam b = (ConsumerRenascenceInfoParam)o;
            if( this.cid < b.getCid()){
                return -1;
            }else if( this.cid > b.getCid()){
                return 1;
            }else{
                return 0;
            }
        }
        return 0;
    }
}
